<template>
  <el-container class="container" >
    <el-aside style="width: auto">
      <CommonAside></CommonAside>
    </el-aside>
    <el-container>
      <el-header><CommonHeader></CommonHeader></el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import CommonAside from '@/components/Common-aside'
import CommonHeader from '@/views/Common-header'

export default {
  name: "Main",
  components: {CommonAside,CommonHeader}
}
</script>

<style lang="less" scoped>

.container{
  height: 100%;
}
.el-aside {
  height: 100%;
}

.el-header {
  background-color: #333;
}

.app-title {
  background-color: #49515b;
  width: 200px;
  height: 60px;
  color: white;
  text-align: center;
  line-height: 60px;
}

</style>